from .coord_to_tile import get_tile


class Open_street_map_service:
    async def get_pixels_coords(
        self,
        lat_deg: float,
        lon_deg: float,
        zoom: int
    ) -> str:
        x, y = await get_tile(lat_deg, lon_deg, zoom)
        # image_url = f"https://tile.openstreetmap.org/{zoom}/{x}/{y}.png"
        # image_url = f"https://tile.openstreetmap.de/{zoom}/{x}/{y}.png"
        return {
            "x": x,
            "y": y,
            "zoom": zoom
        }
